package com.cssy.yd.logic.service;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.springframework.transaction.annotation.Transactional;

import com.cssy.base.service.IBaseService;
import com.cssy.yd.logic.entity.LogicSkReturnDO;
import com.cssy.yd.logic.entity.LogicSkReturnItemDO;
import com.plat.exception.SyBaseException;
import com.plat.helper.SearchConditions;
import com.plat.helper.SearchResult;
import com.yuendong.sy.exception.SyCodeException;

public interface ILogicSkReturnService extends IBaseService<LogicSkReturnDO> {

	public SearchResult findItemListByExample(SearchConditions scs) throws SyBaseException;
	
	public Integer deleteItem(String id) throws SyBaseException;
	
	public Integer updateItem(LogicSkReturnItemDO t) throws SyBaseException;
	
	public LogicSkReturnItemDO saveItem(LogicSkReturnItemDO t) throws SyBaseException;
	
	public LogicSkReturnItemDO findItemListById(String id) throws SyBaseException;
	
	public List<LogicSkReturnItemDO> findItemListBytkid(String tkid) throws SyBaseException;
	
	public Double findLastedDOByExample(SearchConditions scs) throws SyBaseException;
	
	@Transactional
	public void skReturnSave(HttpServletRequest request,LogicSkReturnDO curAP)throws SyBaseException,SyCodeException;
	@Transactional
	public void skReturnCommit(HttpServletRequest request,LogicSkReturnDO curAP)throws SyBaseException,SyCodeException;
}
